package com.lvy.hczn.transmit.service;

import com.lvy.hczn.front.common.core.domain.AjaxResult;
import com.lvy.hczn.front.system.domain.business.Spu;
import com.lvy.hczn.mq.rocket.ParamInfo;
import com.lvy.hczn.transmit.domain.dto.cteck.ProductSellerGoods;

import javax.servlet.http.HttpServletRequest;

public interface TSpuService {

    /**
     * 商品同步
     *
     * @param info
     * @return
     */
    AjaxResult syncSpuBatch(HttpServletRequest request, ParamInfo<ProductSellerGoods> info) throws Exception;

    /**
     * 数据转换
     *
     * @param info
     * @param username
     * @return
     * @author yw
     * @date 2023-06-05 15:22:05
     */
    void convertData(ParamInfo<ProductSellerGoods> info, String username) throws Exception;

    /**
     * 数据转换初始化数据
     * @param spu
     * @param goods
     * @param username
     * @return
     */
    Spu initData(Spu spu, ProductSellerGoods goods, String username);
}
